
@extends('layout.default')

@section('layout.content') 

<div class="row">
  <div class="col-xs-12">
  	<table class="table table-hover table-bordered table-striped">
  		<thead>
        <tr>
          <th style="min-width:130px;">角色</th>
          <th style="min-width:330px;">账号</th>
        </tr>
      </thead>

      <tbody>
        @foreach ($roles as $key=>$role)
        <tr>
          <td class="td-role">
            {{ $role->name }} ({{ $role->value }})
          </td>
          <td>
            @foreach($role->users as $key=>$staff)
              <label> <b>{{$staff->username}}</b>（{{$staff->name}}）{{$key<count($role->users)-1?'，':''}} </label>
            @endforeach
          </td>
        </tr>
        @endforeach
      </tbody>
  	</table>
    
  </div><!-- /.col -->
</div><!-- /.row -->

@stop

@section('javascript')
<script type="text/javascript">

  $(function() {
    
  


  });

</script>
@stop